<!DOCTYPE html>
<html>
<head>
  <title>JMockit Coverage Report - MyCardsPay.java</title>
  <meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/>
  <link rel='stylesheet' type='text/css' href='../../../coverage.css'/>
  <script type='text/javascript' src='../../../coverage.js'></script>
  <script type='text/javascript' src='../../../prettify.js'></script>
</head>
<body onload='prettyPrint()'>
  <table cellpadding='0' cellspacing='1'>
    <caption>Starbucks\src\com\sb\view\MyCardsPay.java</caption>
    <tr>
      <td class='line'>1</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>package com.sb.view;</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'></td><td>&nbsp;</td>
      <td><pre class='imports prettyprint' onclick='showHideLines(this)'><div>import com.sb.controller.AppController;
import com.sb.controller.ScreenState;

import processing.core.PApplet;
import processing.core.PFont;
import processing.core.PImage;
</div><span>import ...</span></pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>10</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>public class MyCardsPay implements ScreenState {</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>12</td><td>&nbsp;</td>
      <td><pre class='comment'>	// StarBucks app design - team MARS</pre></td>
    </tr>
    <tr>
      <td class='line'>13</td><td>&nbsp;</td>
      <td><pre class='comment'>	// Author : Anupama Patil</pre></td>
    </tr>
    <tr>
      <td class='line'>14</td><td>&nbsp;</td>
      <td><pre class='comment'>	// Modified by: RENIS SHAH</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>16</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>	AppController <span class='instance uncovered' title='Reads: 0 Writes: 1'>appController</span>;</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>18</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>	PFont <span class='instance uncovered' title='Reads: 0 Writes: 0'>f</span>;</pre></td>
    </tr>
    <tr>
      <td class='line'>19</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>	PImage <span class='instance uncovered' title='Reads: 0 Writes: 0'>b</span>;</pre></td>
    </tr>
    <tr>
      <td class='line'>20</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>	Menu <span class='instance uncovered' title='Reads: 0 Writes: 0'>mn</span>;</pre></td>
    </tr>
    <tr>
      <td class='line'>21</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>	BarCode <span class='instance uncovered' title='Reads: 0 Writes: 0'>bcd</span>;</pre></td>
    </tr>
    <tr>
      <td class='line'>22</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>	FlipScreen <span class='instance uncovered' title='Reads: 0 Writes: 0'>tch</span>;</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>24</td><td class='count'>1</td>
      <td><pre class='prettyprint covered' id='l24s0'>	public MyCardsPay(AppController appController) {</pre></td>
    </tr>
    <tr>
      <td class='line'>25</td><td class='count'>1</td>
      <td><pre class='prettyprint covered' id='l25s0'>		this.appController = appController;</pre></td>
    </tr>
    <tr>
      <td class='line'>26</td><td class='count'>1</td>
      <td><pre class='prettyprint covered' id='l26s0'>	}</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>28</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>	public void setup(PApplet applet) {</pre></td>
    </tr>
    <tr>
      <td class='line'>29</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l29s0'>		applet.size(262, 400);</pre></td>
    </tr>
    <tr>
      <td class='line'>30</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l30s0'>		applet.background(50);</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>32</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l32s0'>		f = applet.loadFont("Calibri-30.vlw");</pre></td>
    </tr>
    <tr>
      <td class='line'>33</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l33s0'>		applet.textFont(f, 11);</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>35</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l35s0'>		applet.line(2, 2, 260, 2);// boundary line horizontal</pre></td>
    </tr>
    <tr>
      <td class='line'>36</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l36s0'>		applet.line(2, 2, 2, 398);// boundary line vertical</pre></td>
    </tr>
    <tr>
      <td class='line'>37</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l37s0'>		applet.line(2, 398, 260, 398);// boundary line horizontal</pre></td>
    </tr>
    <tr>
      <td class='line'>38</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l38s0'>		applet.line(260, 2, 260, 398);// boundary line vertical</pre></td>
    </tr>
    <tr>
      <td class='line'>39</td><td>&nbsp;</td>
      <td><pre class='comment'>		// above code is for setting the output screen size</pre></td>
    </tr>
    <tr>
      <td class='line'>40</td><td>&nbsp;</td>
      <td><pre class='comment'>		// and creating a boundary rectangle</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>42</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l42s0'>		applet.line(2, 350, 260, 350); // horizontal applet.line for common menu</pre></td>
    </tr>
    <tr>
      <td class='line'>43</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l43s0'>		applet.line(52, 350, 52, 398);// verticle applet.line for menu</pre></td>
    </tr>
    <tr>
      <td class='line'>44</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l44s0'>		applet.line(104, 350, 104, 398);</pre></td>
    </tr>
    <tr>
      <td class='line'>45</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l45s0'>		applet.line(159, 350, 159, 398);</pre></td>
    </tr>
    <tr>
      <td class='line'>46</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l46s0'>		applet.line(208, 350, 208, 398);</pre></td>
    </tr>
    <tr>
      <td class='line'>47</td><td>&nbsp;</td>
      <td><pre class='comment'>		// above code if for the common menu at the bottom of the screen</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>49</td><td>&nbsp;</td>
      <td><pre class='comment'>		// Above code is to display the menus at the bottom of the screen</pre></td>
    </tr>
    <tr>
      <td class='line'>50</td><td>&nbsp;</td>
      <td><pre class='comment'>		// Following code is specific to my Screen</pre></td>
    </tr>
    <tr>
      <td class='line'>51</td><td>&nbsp;</td>
      <td><pre class='comment'>		// -------------------------------------------------------------</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>53</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l53s0'>		applet.fill(255);</pre></td>
    </tr>
    <tr>
      <td class='line'>54</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l54s0'>		applet.ellipse(135,210,40,7);</pre></td>
    </tr>
    <tr>
      <td class='line'>55</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l55s0'>		applet.ellipse(137,214,50,10);</pre></td>
    </tr>
    <tr>
      <td class='line'>56</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l56s0'>		applet.beginShape();</pre></td>
    </tr>
    <tr>
      <td class='line'>57</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l57s0'>		applet.vertex(115, 215);</pre></td>
    </tr>
    <tr>
      <td class='line'>58</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l58s0'>		applet.vertex(125, 270);</pre></td>
    </tr>
    <tr>
      <td class='line'>59</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l59s0'>		applet.vertex(150, 270);</pre></td>
    </tr>
    <tr>
      <td class='line'>60</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l60s0'>		applet.vertex(160, 215);</pre></td>
    </tr>
    <tr>
      <td class='line'>61</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l61s0'>		applet.textFont(f, 20);</pre></td>
    </tr>
    <tr>
      <td class='line'>62</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l62s0'>		applet.text("Scan Now", 100, 300);// applet.text for : Screen Pay</pre></td>
    </tr>
    <tr>
      <td class='line'>63</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l63s0'>		applet.endShape();</pre></td>
    </tr>
    <tr>
      <td class='line'>64</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l64s0'>		applet.fill(50);</pre></td>
    </tr>
    <tr>
      <td class='line'>65</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l65s0'>		applet.ellipse(137,240,15,15);</pre></td>
    </tr>
    <tr>
      <td class='line'>66</td><td>&nbsp;</td>
      <td><pre class='comment'>		//above code is to display cup image and the circle on it</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>70</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l70s0'>		applet.fill(27, 131, 87);</pre></td>
    </tr>
    <tr>
      <td class='line'>71</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l71s0'>		applet.rect(2, 2, 259, 45);// The top applet.rectangle for :Screen Pay</pre></td>
    </tr>
    <tr>
      <td class='line'>72</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l72s0'>		applet.fill(255);</pre></td>
    </tr>
    <tr>
      <td class='line'>73</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l73s0'>		applet.textFont(f, 20);</pre></td>
    </tr>
    <tr>
      <td class='line'>74</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l74s0'>		applet.text("My Cards", 100, 30);// applet.text in Top applet.rectangle</pre></td>
    </tr>
    <tr>
      <td class='line'>75</td><td>&nbsp;</td>
      <td><pre class='comment'>											// for :</pre></td>
    </tr>
    <tr>
      <td class='line'>76</td><td>&nbsp;</td>
      <td><pre class='comment'>											// Screen pay</pre></td>
    </tr>
    <tr>
      <td class='line'>77</td><td>&nbsp;</td>
      <td><pre class='comment'>		// -------------------------------------------------------------</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>79</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l79s0'>		bcd = new BarCode(appController);</pre></td>
    </tr>
    <tr>
      <td class='line'>80</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l80s0'>		bcd.draw(applet);</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>82</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l82s0'>		tch = new FlipScreen(appController);</pre></td>
    </tr>
    <tr>
      <td class='line'>83</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l83s0'>		tch.draw(applet);</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>85</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l85s0'>		mn = new Menu(appController);</pre></td>
    </tr>
    <tr>
      <td class='line'>86</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l86s0'>		mn.draw(applet);</pre></td>
    </tr>
    <tr>
      <td class='line'>87</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l87s0'>	}// end of function setup</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>89</td><td>&nbsp;</td>
      <td><pre class='comment'>	// ---------------------------------------------------------------------------------------</pre></td>
    </tr>
    <tr>
      <td class='line'>90</td><td>&nbsp;</td>
      <td><pre class='comment'>	// Following code for muse</pre></td>
    </tr>
    <tr>
      <td class='line'>91</td><td>&nbsp;</td>
      <td><pre class='comment'>	// events---------------------------------------------------------</pre></td>
    </tr>
    <tr>
      <td class='line'>92</td><td>&nbsp;</td>
      <td><pre class='comment'>	// ............................................................................................</pre></td>
    </tr>
    <tr>
      <td class='line'>93</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>	public void draw(PApplet applet) {</pre></td>
    </tr>
    <tr>
      <td class='line'>94</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l94s0'>	}// this function is needed to make the mousepressesd() work.Its just empty</pre></td>
    </tr>
    <tr>
      <td class='line'>95</td><td>&nbsp;</td>
      <td><pre class='comment'>		// but u shld have it .</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>97</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>	public void mousePressed(PApplet applet) {</pre></td>
    </tr>
    <tr>
      <td class='line'>98</td><td>&nbsp;</td>
      <td><pre class='comment'>		// Test if the cursor is over the Circle (Touch When Done)</pre></td>
    </tr>
    <tr>
      <td></td><td class='count'>0</td>
      <td class='paths'>
        <span style='cursor:default; background-color:#ff0000' onclick='hidePath()'>Path coverage: 0/21</span>
        <span class='uncovered' onclick="showPath(this,'l99s0 l104s0 l111s0')">A: 0</span>
        <span class='uncovered' onclick="showPath(this,'l99s0 l104s0 l104s1 l111s0')">B: 0</span>
        <span class='uncovered' onclick="showPath(this,'l99s0 l104s0 l104s1 l105s0 l111s0')">C: 0</span>
        <span class='uncovered' onclick="showPath(this,'l99s0 l104s0 l104s1 l105s0 l105s1 l111s0')">D: 0</span>
        <span class='uncovered' onclick="showPath(this,'l99s0 l104s0 l104s1 l105s0 l105s1 l109s0 l111s0')">E: 0</span>
        <span class='uncovered' onclick="showPath(this,'l99s0 l99s1 l104s0 l111s0')">F: 0</span>
        <span class='uncovered' onclick="showPath(this,'l99s0 l99s1 l104s0 l104s1 l111s0')">G: 0</span>
        <span class='uncovered' onclick="showPath(this,'l99s0 l99s1 l104s0 l104s1 l105s0 l111s0')">H: 0</span>
        <span class='uncovered' onclick="showPath(this,'l99s0 l99s1 l104s0 l104s1 l105s0 l105s1 l111s0')">I: 0</span>
        <span class='uncovered' onclick="showPath(this,'l99s0 l99s1 l104s0 l104s1 l105s0 l105s1 l109s0 l111s0')">J: 0</span>
        <span class='uncovered' onclick="showPath(this,'l99s0 l99s1 l100s0 l104s0 l111s0')">K: 0</span>
        <span class='uncovered' onclick="showPath(this,'l99s0 l99s1 l100s0 l104s0 l104s1 l111s0')">L: 0</span>
        <span class='uncovered' onclick="showPath(this,'l99s0 l99s1 l100s0 l104s0 l104s1 l105s0 l111s0')">M: 0</span>
        <span class='uncovered' onclick="showPath(this,'l99s0 l99s1 l100s0 l104s0 l104s1 l105s0 l105s1 l111s0')">N: 0</span>
        <span class='uncovered' onclick="showPath(this,'l99s0 l99s1 l100s0 l104s0 l104s1 l105s0 l105s1 l109s0 l111s0')">O: 0</span>
        <span class='uncovered' onclick="showPath(this,'l99s0 l99s1 l100s0 l100s1 l104s0 l111s0')">P: 0</span>
        <span class='uncovered' onclick="showPath(this,'l99s0 l99s1 l100s0 l100s1 l104s0 l104s1 l111s0')">Q: 0</span>
        <span class='uncovered' onclick="showPath(this,'l99s0 l99s1 l100s0 l100s1 l104s0 l104s1 l105s0 l111s0')">R: 0</span>
        <span class='uncovered' onclick="showPath(this,'l99s0 l99s1 l100s0 l100s1 l104s0 l104s1 l105s0 l105s1 l111s0')">S: 0</span>
        <span class='uncovered' onclick="showPath(this,'l99s0 l99s1 l100s0 l100s1 l104s0 l104s1 l105s0 l105s1 l109s0 l111s0')">T: 0</span>
        <span class='uncovered' onclick="showPath(this,'l99s0 l99s1 l100s0 l100s1 l101s0 l111s0')">U: 0</span>
      </td>
    </tr>
    <tr>
      <td class='line'>99</td><td class='count'>0</td>
      <td><pre class='prettyprint jmp'>		<span id='l99s0' title='Executions: 0' class='uncovered'>if(applet.mouseX > 3</span> && <span id='l99s1' title='Executions: 0' class='uncovered'>applet.mouseX &lt; 210</span></pre></td>
    </tr>
    <tr>
      <td class='line'>100</td><td class='count'>0</td>
      <td><pre class='prettyprint jmp'>				&& <span id='l100s1' title='Executions: 0' class='uncovered'>applet.mouseY > 352</span> && <span id='l100s2' title='Executions: 0' class='uncovered'>applet.mouseY &lt; 397){</span></pre></td>
    </tr>
    <tr>
      <td class='line'>101</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l101s0'>			mn = new Menu(appController);</pre></td>
    </tr>
    <tr>
      <td class='line'>102</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l102s0'>			mn.mousePressed(applet);</pre></td>
    </tr>
    <tr>
      <td class='line'>103</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>		}</pre></td>
    </tr>
    <tr>
      <td class='line'>104</td><td class='count'>0</td>
      <td><pre class='prettyprint jmp'>		else <span id='l104s1' title='Executions: 0' class='uncovered'>if(applet.mouseX > (220 - 50)</span> && <span id='l104s2' title='Executions: 0' class='uncovered'>applet.mouseX &lt; (220 + 50)</span></pre></td>
    </tr>
    <tr>
      <td class='line'>105</td><td class='count'>0</td>
      <td><pre class='prettyprint jmp'>				&& <span id='l105s1' title='Executions: 0' class='uncovered'>applet.mouseY > (180 - 50)</span> && <span id='l105s2' title='Executions: 0' class='uncovered'>applet.mouseY &lt; (180 + 50)){</span></pre></td>
    </tr>
    <tr>
      <td class='line'></td><td>&nbsp;</td>
      <td class='comment' onclick='showHideLines(this)'><div>			/*tch = new TouchWhenDone(appController);
			tch.draw(applet);*/</div><span>			/*...*/</span></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>109</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l109s0'>			appController.setCurrentScreen(appController.getMyCardsMain());</pre></td>
    </tr>
    <tr>
      <td class='line'>110</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>		}		 </pre></td>
    </tr>
    <tr>
      <td class='line'>111</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l111s0'>	}// end of mousepressed</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>113</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>	@Override</pre></td>
    </tr>
    <tr>
      <td class='line'>114</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>	public void drawArrow(int cx, int cy, int len, float angle, PApplet applet) {</pre></td>
    </tr>
    <tr>
      <td class='line'>115</td><td>&nbsp;</td>
      <td><pre class='comment'>		// TODO Auto-generated method stub</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>117</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l117s0'>	}</pre></td>
    </tr>
    <tr>
      <td class='line'>118</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>}</pre></td>
    </tr>
  </table>
</body>
</html>
